home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / headers / uam.h < prev   
Encoding:
Text File  |  2000-06-23  |  1.6 KB  |  67 lines

  1. /*
  2.     File:        UAM.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    AppleShare IP
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            AppleShare IP
  17.  
  18.     Writers:
  19.  
  20.         (EAS)    Erik Sea
  21.         (AKN)    Akira Nonaka
  22.  
  23.     Change History (most recent first):
  24.  
  25.        <AS7>     8/29/98    EAS        Take out a duplicate structure from OAMTypes.h
  26.        <AS6>     8/17/98    AKN        added UAMChangeUID()
  27.        <AS5>     8/13/98    AKN        First checked in.
  28. */
  29.  
  30. // UAM.h
  31.  
  32. #pragma once
  33.  
  34. /*  vin... 
  35. #include "OAMTypes.h"
  36. */
  37.  
  38. enum { kUAMAuthLogin, kUAMAuthLoginContinue, kUAMAuthChangeKey, kUAMAuthChangeKeyContinue };
  39. enum { kUAMAuthObject = 0, kUAMAuthStream = 1 };
  40.  
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45.  
  46. #ifdef AGENT
  47. typedef OSStatus     OAMStatus;
  48. typedef OSType        OAMType;
  49. typedef OSType        OAMObjectType;
  50. typedef struct OAMObjectSpec OAMObjectSpec;
  51. typedef UInt32        OAMShortObjectSpec, *OAMShortObjectSpecPtr;
  52. #endif
  53. extern OAMStatus UAMGetAttributeID(UInt32 id, OSType creator, OSType type, void *buffer, UInt32 *size);
  54. extern OAMStatus UAMSetAttributeID(UInt32 id, OSType creator, OSType type, void *buffer, UInt32 *size);
  55.  
  56. extern OAMStatus UAMGetAttribute(OAMObjectSpec* obj, OSType creator, OSType type, void *buffer, UInt32 *size);
  57. extern OAMStatus UAMSetAttribute(OAMObjectSpec* obj, OSType creator, OSType type, void *buffer, UInt32 *size);
  58. extern OAMStatus UAMCreateObject(OAMObjectSpec* obj);
  59. extern UInt32 UAMGetThreadID();
  60. extern UInt32 UAMSleep(UInt32 msec);
  61. extern void UAMWakeup(UInt32 id,UInt32 refCon);
  62. extern OAMStatus UAMChangeUID(UInt32 newID);
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67.